package com.wtone.platform.gat.images.gat.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @Author: aiLin
 * @Date: 2020/9/25 14:42
 * @desc: 响应对象
 */
@ToString
@NoArgsConstructor                 //无参构造
@AllArgsConstructor                //有参构造
@ApiModel(value="ResponseStatus对象",description="响应信息对象")
public class ResponseStatus {

    @ApiModelProperty(value="POST 方法创建资源时会返回 ID。创建成功后必须返回新的ID，创建失败时返回原上报的对象 ID")
    private String Id;

    @ApiModelProperty(value="对应操作的 URL")
    private String RequestURL;

    @ApiModelProperty(value="O-OK，正常\n" +
            "1-OtherError，其他未知错误\n" +
            "2-Device Busy，设备忙\n" +
            "3-Device Error，设备错\n" +
            "4-Invalid Operation，无效操作\n" +
            "5-Invalid XML Format，XML 格式无效\n" +
            "6-Invalid XML Content，XML 内容无效\n" +
            "7-Invalid JSON Format，JSON 格式无效\n" +
            "8-Invalid JSON Content，JSON 内容无效\n" +
            "9-Reboot，系统重启中")
    private String StatusCode;

    @ApiModelProperty(value="状态值")
    private String StatusString;

    @ApiModelProperty(value="时间格式为14位字符串，如“20181204141511”")
    private String LocalTime;


    @JsonProperty("Id")
    public String getId() {
        return Id;
    }

    public void setId(String id) {
        Id = id;
    }

    @JsonProperty("RequestURL")
    public String getRequestURL() {
        return RequestURL;
    }

    public void setRequestURL(String requestURL) {
        RequestURL = requestURL;
    }

    @JsonProperty("StatusCode")
    public String getStatusCode() {
        return StatusCode;
    }

    public void setStatusCode(String statusCode) {
        StatusCode = statusCode;
    }

    @JsonProperty("StatusString")
    public String getStatusString() {
        return StatusString;
    }

    public void setStatusString(String statusString) {
        StatusString = statusString;
    }

    @JsonProperty("LocalTime")
    public String getLocalTime() {
        return LocalTime;
    }

    public void setLocalTime(String localTime) {
        LocalTime = localTime;
    }
}
